package com.lau.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lau.mapper.TSysLogMapper;
import com.lau.pojo.TSysLog;
import com.lau.service.TSysLogService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 系统日志 服务实现类
 * </p>
 *
 * @author Lau
 * @since 2022-12-12
 */
@Service
@Slf4j
public class TSysLogServiceImpl extends ServiceImpl<TSysLogMapper, TSysLog> implements TSysLogService {

    @Override
    @Async
    public void asyncSave(TSysLog entity) {
        log.info("TSysLogServiceImpl---------"+Thread.currentThread().getName());
        save(entity);
    }
}
